package cn.anecansaitin.whimsy.common.register;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.common.loot.predicate.LootPathCheck;
import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.storage.loot.predicates.LootItemConditionType;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;

public class ModLootPredicates {
    public static DeferredRegister<LootItemConditionType> PREDICATE = DeferredRegister.create(Registries.LOOT_CONDITION_TYPE, Whimsy.MODID);

    public static DeferredHolder<LootItemConditionType, LootItemConditionType> LOOT_PATH_CHECK = PREDICATE.register("loot_path_check", () -> new LootItemConditionType(LootPathCheck.CODEC));
}
